<?php

class Application_Model_Form_Login extends Zend_Form
{
    public function __construct()
    {
        parent::__construct();


        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Имя пользователя')
                                ->setRequired(TRUE)
                                ->addValidator('notEmpty')
                                 ->addValidator('alNum')
                                 ->addFilter('stringTrim')
                                 ->addFilter('stripTags')
                                 ->setAttrib('class', 'input');
        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Пароль')
                                ->setRequired(true)
                                ->addValidator('NotEmpty')
                                ->setAttrib('class', 'input');
        $remember = new Zend_Form_Element_Checkbox('remember');
        $remember ->setLabel('Запомнить на 10 минут');
        $submit = new Zend_Form_Element_submit('submit');

        $this->addElements(array($username, $password,$remember, $submit));
         
    }
    
}

?>